{extend name="Public/public"}
{block name="title"}修改用户{/block}
{block name="main"}
  <div class="col-sm-5"> 
   <div class="widget-box"> 
    <div class="widget-header"> 
     <h4>修改用户</h4> 
    </div> 
    <div class="widget-body"> 
     <div class="widget-main no-padding"> 
      <form action="/user/update" method="post"> 
      <input type="hidden" value="{$list.id}"name="id">
       <!-- <legend>Form</legend> --> 
       <fieldset> 
        <label>用户昵称</label> 
        <input type="text" name="username" value="{$list.username}"/> <br>
       </fieldset> 
        <fieldset> 
        <label>真实姓名</label> 
        <input type="text" name="name" value="{$list.name}"/> <br>
       </fieldset> 
        <fieldset> 
        <label>密码&nbsp;&nbsp;&nbsp;&nbsp;</label> 
        <input type="text" name="password" value="{$list.password}"/> <br>
       </fieldset> 
        <fieldset> 
        <label>重复密码</label> 
        <input type="text" name="repassword" value="{$list.password}"/> <br>
       </fieldset> 
        <fieldset> 
        <label>Email&nbsp;&nbsp;&nbsp;</label> 
        <input type="text" name="mail" value="{$list.mail}"/> <br>
       </fieldset> 
        <fieldset> 
        <label>手机号码</label> 
        <input type="text" name="phone" value="{$list.phone}"/> <br>
       </fieldset> 
        <fieldset> 
        <label>状态&nbsp;&nbsp;&nbsp;&nbsp;</label> 
        <select name="static" id="">
          <option value="1"{if condition="$list['static'] eq 1"}selected{/if}>启用</option>
          <option value="2"{if condition="$list['static'] eq 2"}selected{/if}>禁用</option>
        </select>
       </fieldset> 
        <fieldset> 
        <label>用户组权限</label> 
        <select name="details" id="">
         {if condition="is_array($data)"}
           {foreach name="data" item="row"}
        	<option value="{$row.details}"{if condition="$list['details'] eq $row.details"}selected{/if}>{$row.name}</option>
         {/foreach}
         {/if}
        </select>
       </fieldset> 
       
        <div class="form-actions center"> 
        <input type="submit" class="btn btn-sm btn-success" value="修改">
       </div> 
      </form> 
     </div> 
    </div> 
   </div> 
  </div>
{/block}